﻿@using OF.Component.Model
@using OF.Utility
@model  List<HospitalInfo>

<div class="box-body table-responsive no-padding">
    <table class="table table-hover body-table-head">
        <thead>
            <tr>
                <th>
                    ID
                </th>
                <th>
                    医院名称
                </th>
                <th>
                    拼音首字母
                </th>
                <th>
                    地址
                </th>
                @*<th>
                    创建人ID
                </th>*@
                <th>
                    创建时间
                </th>
                <th class="t_c">
                    操作
                </th>
            </tr>
        </thead>
        <tbody id="dataView" data-count="@ViewBag.OutCount">
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.HospitalID</td>
                    <td> @item.HospitalName</td>
                    <td> @item.Initial</td>
                    <td> @item.Address</td>
                    @*<td>@item.CreatedUserID</td>*@
                    <td>@item.CreatedDate.ToString("yyyy/MM/dd hh:mm:ss")</td>
                    <td class="t_c">
                        <button type="button" class="btn btn-info btn-xs" onclick="edit('','@item.HospitalID')">编辑</button>
                        <button type="button" class="btn btn-danger btn-xs" onclick="del('@item.HospitalID')">删除</button>
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
@if (Model.Count <= 0)
{
    <div class="no-data" id="nodata">
        <div class="img-box"></div>
        <div class="text">暂无数据</div>
    </div>
}





